2008-08-29 Matthias Clasen <mclasen@redhat.com>
Bug 549262 – GtkScrolledWindow should not accept focus unless
GTK_CAN_FOCUS is set
* gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): only grab the
focus, if GTK_WIDGET_CAN_FOCUS() returns TRUE. Patch by Sven
Herzberg
svn path=/trunk/; revision=21233
+2008-08-29 Matthias Clasen <mclasen@redhat.com>
+
+ Bug 549262 – GtkScrolledWindow should not accept focus unless
+ GTK_CAN_FOCUS is set
+
+ * gtk/gtkscrolledwindow.c (gtk_scrolled_window_focus): only grab the
+ focus, if GTK_WIDGET_CAN_FOCUS() returns TRUE. Patch by Sven
+ Herzberg
+
2008-08-29 Matthias Clasen <mclasen@redhat.com>
* gtk/gtk.symbols:
return TRUE;
}
- if (!had_focus_child)
+ if (!had_focus_child && GTK_WIDGET_CAN_FOCUS (widget))
{
gtk_widget_grab_focus (widget);
return TRUE;